package com.hyacinth.lotterysystem.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hyacinth.lotterysystem.service.enums.ActivityStatusEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@TableName("activity")
@EqualsAndHashCode(callSuper = true)
public class ActivityDO extends BaseDO {
    private String activityName;
    private String description;
    private ActivityStatusEnum status;

    public Boolean valid() {
        return status.equals(ActivityStatusEnum.RUNNING);
    }
}
